<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2023/4/11
  Time: 14:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--
var 属性设置key是多少
 value 属性设置值
--%>
保存之前：${ sessionScope.abc } <br>
<c:set scope="session" var="abc" value="abcValue"/>
保存之后：${ sessionScope.abc } <br>
<c:if test="${ 1>0 }">
    <h1>1>0</h1>
</c:if>
<c:if test="${ 12 == 12 }">
    <h1>12 等于 12</h1>
</c:if>
<c:if test="${ 12 != 12 }">
    <h1>12 不等于 12</h1>
</c:if>

<%
    request.setAttribute("height", 178);
%>
<c:choose>
    <c:when test="${ requestScope.height>190}">
        <h2>小巨人</h2>
    </c:when>
    <c:when test="${ requestScope.height>180}">
        <h2>很高</h2>
    </c:when>
    <c:otherwise>
        <h2>剩下小于178</h2>
    </c:otherwise>
</c:choose>

</body>
</html>
